
package net.starwifi.duobao.service;




import net.starwifi.duobao.entity.Operator;

import java.util.List;

public interface OperatorService extends BaseService<Operator,Long> {


    public Operator findByUsername(String username);


    public Boolean usernameExists(String username);


    public Operator getCurrent() ;


    /**
     * 根据ID查找权限
     *
     * @param id
     *            ID
     * @return 权限,若不存在则返回null
     */
    List<String> findAuthorities(Long id);




}
